import request from "@/utils/yzy/request";
import { agencyType } from "@/types/yzy/agency";
const serve = {
  getSDRSSIBySOTSTS: (data: agencyType) =>
    request.post("/api/getSDRSSIBySOTSTSPage", data), //分布搜索服务信息
  getServiceDetail: (id: string) =>
    request.post("/api/getServiceDetailById", { id }), //根据服务详情id查询服务信息
  getHealthFollowUp: (serviceDetailId: string) =>
    request.post("/api/getHealthFollowUpBySDId", { serviceDetailId }), //根据服务id查询健康随访信息
  addHealthFollowUp: (data: any) =>
    request.post("/api/addHealthFollowUpBySDId", data), //新增健康随访信息
  updateStatusByServiceDetailId: (data: any) =>
    request.post("/api/updateStatusByServiceDetailId", data), //根据服务详情id更新服务状态
  getServiceItemByServiceIdApi: (serviceId: string) =>
    request.post("/api/getServiceItemByServiceId", { serviceId }), //根据服务包查询服务项
  updateChcsServicedetail: (data: any) =>
    request.post("/api/updateChcsServicedetail", data), //修改服务项
  getResidentBySOTSL: () => request.post("/api/getResidentBySOTSLByPage"), //获取所有居民信息
  saveServiceDetail: (data: any) =>
    request.post("/api/saveServiceDetail", data), //新增服务
};
export default serve;
